<include file="Public/min-header"/>

<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content" style="padding:0px 15px;">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">           
                <div class="panel-body ">   
                    <ul class="nav nav-tabs">
                        <foreach name="group_list" item="vo" key="k">
                            <li <if condition="$k eq 'shopping'">class="active"</if>><a href="javascript:void(0)" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>                       
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="handlepost" action="{:U('System/handle')}">                    
                        <!--通用信息-->
                        <div class="tab-content col-md-10">                 	  
                            <div class="tab-pane active" id="tab_tongyong">                           
                                <table class="table table-bordered">
                                    <tbody>                                    
                                        <tr>
                                            <td class="col-sm-2">全场满多少免运费：<br/>(0表示不免运费)</td>
                                            <td class="col-sm-8">
                                                <input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="form-control" name="freight_free" value="{$config.freight_free|default='0'}" >
                                                <span id="err_attr_name" style="color:#F00; display:none;"></span>                                        
                                            </td>
                                        </tr>    
                                        <tr>
                                            <td>购物币换算比例：</td>
                                            <td >        
                                                <!--<input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="form-control" name="point_rate" value="{$config.point_rate|default='1'}" >-->
                                    <input type="radio" class="" name="point_rate" value="1"  <if condition="$config[point_rate] eq 1"> checked </if> >1元 = 1购物币  &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="radio" class="" name="point_rate" value="10" <if condition="$config[point_rate] eq 10"> checked </if> >1元 = 10购物币  &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="radio" class="" name="point_rate" value="100"<if condition="$config[point_rate] eq 100"> checked </if> >1元 = 100购物币
                                    </td>
                                    </tr>    
                                    <tr>
                                        <td>发货后多少天自动收货：</td>
                                        <td >                         		
                                            <select class="form-control" name="auto_confirm_date" id="distribut_date">
                                                <for start="1" end="31" name="i" >          
                                                    <option value="{$i}" <if condition="$config[auto_confirm_date] eq $i">selected="selected"</if>>{$i}天</option>
                                                </for>
                                            </select>                                      
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>提现日期参数：</td>
                                        <td>
                                            <input type="checkbox" name="tk_time[1]" <if condition='$config[tk_time][1] eq "1"'>checked</if> value="1" />星期一
                                            <input type="checkbox" name="tk_time[2]" <if condition='$config[tk_time][2] eq "2"'>checked</if> value="2" />星期二
                                            <input type="checkbox" name="tk_time[3]" <if condition='$config[tk_time][3] eq "3"'>checked</if> value="3" />星期三
                                            <input type="checkbox" name="tk_time[4]" <if condition='$config[tk_time][4] eq "4"'>checked</if> value="4" />星期四
                                            <input type="checkbox" name="tk_time[5]" <if condition='$config[tk_time][5] eq "5"'>checked</if> value="5" />星期五
                                            <input type="checkbox" name="tk_time[6]" <if condition='$config[tk_time][6] eq "6"'>checked</if> value="6" />星期六
                                            <input type="checkbox" name="tk_time[0]" <if condition='$config[tk_time][0] eq "0"'>checked</if> value="0" />星期天
                                        </td>
                                    </tr>
                                   
                                    <tr>
                                        <td>提现时间参数：</td>
                                        <td>
                                            <input type="number"  pattern="^\d{1,}$"  class="input-sm" name="tk_add_time" value="{$config.tk_add_time}" style="width:118px;" placeholder="提现开始时间">
                                            <input type="number"  pattern="^\d{1,}$"  class="input-sm" name="tk_out_time" value="{$config.tk_out_time}" style="width:118px;" placeholder="提现结束时间">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>会员提现参数：</td>
                                        <td>
                                            <input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="tikuan_1" value="{$config.tikuan_1}" style="width:68px;">起
                                            <input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="tikuan_2" value="{$config.tikuan_2}" style="width:68px;">倍数
                                            <input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="tikuan_3" value="{$config.tikuan_3}" style="width:68px;"><b style="color:red;">【%】</b>手续费
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="col-sm-2">提现登记时提示：</td>
                                        <td class="col-sm-8">
                                            <input type="text" class="form-control" name="tk_note" value="{$config.tk_note}" placeholder="提现登记成功时提示">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>收入分配：</td>
                                        <td>
                                            储备金<input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="minus_1" value="{$config.minus_1}" style="width:68px;"><b style="color:red;">【%】</b>
                                            管理费<input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="minus_2" value="{$config.minus_2}" style="width:68px;"><b style="color:red;">【%】</b>
                                            所得税<input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="minus_3" value="{$config.minus_3}" style="width:68px;"><b style="color:red;">【%】</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="col-sm-2">静态分红设置：</td>
                                        <td class="col-sm-8">
                                            <input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="lx_num" value="{$config.lx_num}" style="width:68px;"> <b style="color:red;">【日】</b> 为一周期 【测试时将参数设为 “ 0 ”正式运行 请关闭开关】
                                            <img width="20" height="20" src="__PUBLIC__/images/<if condition='$config.lx_num_statu eq 1'>yes.png <else />cancel.png</if>" onclick="changeTableVal('config','name','lx_num_statu','value',this)"/>
                                            
                                        </td>
                                    </tr>
                                    </tbody> 
                                    <tfoot>
                                        <tr>
                                            <td><input type="hidden" name="inc_type" value="{$inc_type}"></td>
                                            <td class="text-right"><input class="btn btn-primary" type="buuton" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>                               
                                </table>
                            </div>                           
                        </div>              
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit() {
        $('#handlepost').submit();
    }

    $(document).ready(function () {
        get_province();
    });

    function goset(obj) {
        window.location.href = $(obj).attr('data-url');
    }
</script>

</body>
</html>